package org.atlantis.net.base.vote;

import java.io.IOException;

/*
 * 对消息进行编码、解码的接口。
 */
public interface VoteMessageCoder {

	byte[] encode(VoteMessage message) throws IOException;

	VoteMessage decode(byte[] input) throws IOException;
}
